package com.techstar.ats.status;

import java.util.Set;

public enum ScadaStatus implements StatusEnumerated {
	ON("开关", "有电", "没电"),
	SINGLE_POWER("供电", "单边供电", "非单边供电"),
	UNKNOWN("未知状态", "是", "否");

	private final String literal;
	private final String trueLiteral;
	private final String falseLiteral;

	ScadaStatus(String literal, String trueLiteral, String falseLiteral) {
		this.literal = literal;
		this.trueLiteral = trueLiteral;
		this.falseLiteral = falseLiteral;
	}

	@Override
	public String literal() {
		return this.literal;
	}

	@Override
	public String trueLiteral() {
		return this.trueLiteral;
	}

	@Override
	public String falseLiteral() {
		return this.falseLiteral;
	}

	public static Set<ScadaStatus> valueOf(int mask) {
		return StatusEnumerated.valueOf(ScadaStatus.class, mask);
	}
}
